package com.ss.android.article.base.utils.b;

import android.text.TextPaint;
import android.text.style.ClickableSpan;
import android.view.View;

public class e extends ClickableSpan {
    public interface a {
        void c(String arg1);
    }

    boolean a;
    private String b;
    private int c;
    private int d;
    private a e;

    public e(String arg1, a arg2, int arg3, int arg4) {

        this.b = arg1;
        this.e = arg2;
        this.c = arg3;
        this.d = arg4;
    }

    public void onClick(View arg3) {
        if(this.e != null) {
            this.e.c(this.b);
        }
    }

    public void updateDrawState(TextPaint arg2) {
        super.updateDrawState(arg2);
        int v0 = this.a ? this.d : this.c;
        arg2.setColor(v0);
        arg2.setUnderlineText(false);
    }
}

